package cn.how2go.data.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author LGP
 * @since 2018-11-13
 */
@TableName("pt_cars")public class Cars implements Serializable{
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private Integer fleetid;
    private String fleetname;
    private String simno;
    private String carno;
    private String plateno;
    private String commode;
    private String protocol;
    private String position;
    private String carown;
    private String cartype;
    private Integer runtotal;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date safetime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date stoptime;
    private Integer limitspeed;
    private Integer status;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getFleetid() {
        return fleetid;
    }

    public void setFleetid(Integer fleetid) {
        this.fleetid = fleetid;
    }

    public String getFleetname() {
        return fleetname;
    }

    public void setFleetname(String fleetname) {
        this.fleetname = fleetname;
    }

    public String getSimno() {
        return simno;
    }

    public void setSimno(String simno) {
        this.simno = simno;
    }

    public String getCarno() {
        return carno;
    }

    public void setCarno(String carno) {
        this.carno = carno;
    }

    public String getPlateno() {
        return plateno;
    }

    public void setPlateno(String plateno) {
        this.plateno = plateno;
    }

    public String getCommode() {
        return commode;
    }

    public void setCommode(String commode) {
        this.commode = commode;
    }

    public String getProtocol() {
        return protocol;
    }

    public void setProtocol(String protocol) {
        this.protocol = protocol;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public String getCarown() {
        return carown;
    }

    public void setCarown(String carown) {
        this.carown = carown;
    }

    public String getCartype() {
        return cartype;
    }

    public void setCartype(String cartype) {
        this.cartype = cartype;
    }

    public Integer getRuntotal() {
        return runtotal;
    }

    public void setRuntotal(Integer runtotal) {
        this.runtotal = runtotal;
    }

    public Date getSafetime() {
        return safetime;
    }

    public void setSafetime(Date safetime) {
        this.safetime = safetime;
    }

    public Date getStoptime() {
        return stoptime;
    }

    public void setStoptime(Date stoptime) {
        this.stoptime = stoptime;
    }

    public Integer getLimitspeed() {
        return limitspeed;
    }

    public void setLimitspeed(Integer limitspeed) {
        this.limitspeed = limitspeed;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Cars{" +
                "id=" + id +
                ", fleetid=" + fleetid +
                ", fleetname='" + fleetname + '\'' +
                ", simno='" + simno + '\'' +
                ", carno='" + carno + '\'' +
                ", plateno='" + plateno + '\'' +
                ", commode='" + commode + '\'' +
                ", protocol='" + protocol + '\'' +
                ", position='" + position + '\'' +
                ", carown='" + carown + '\'' +
                ", cartype='" + cartype + '\'' +
                ", runtotal=" + runtotal +
                ", safetime=" + safetime +
                ", stoptime=" + stoptime +
                ", limitspeed=" + limitspeed +
                ", status=" + status +
                '}';
    }
}
